package edu.cmu.ece.ds.droidchat.message;

import java.io.Serializable;
import java.math.BigInteger;

/* Number 2
 * From: server
 * To: request user
 * Purpose: reply the public key asked
 */

public class CreateSessionInfoResponseMessage extends CreateSessionMessage implements
Serializable {

	private static final long serialVersionUID = -4722752785141784965L;

	// the user who public key information is contained in this message
	private String username;
	
	// the user's public key
	private BigInteger public_modulus;
	private BigInteger public_exponent;
	
	public CreateSessionInfoResponseMessage(String chatSessionid,BigInteger modulus,
			BigInteger exponent,String username){
		super(chatSessionid);
		this.public_exponent=exponent;
		this.public_modulus=modulus;
		this.username=username;
	}
	
	public BigInteger getPublic_modulus() {
		return public_modulus;
	}
	
	public BigInteger getPublic_exponent() {
		return public_exponent;
	}
	
	public String getUsername() {
		return username;
	}
	
}
